package com.googlecode.excavator.test.provider;

import javax.annotation.Resource;

import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.googlecode.excavator.test.service.SayService;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations="classpath*:/spring-excavator/spring-provider.xml")
public class SpringProviderTestCase {

	@Resource(name="sayServiceG1")
	private SayService sayServiceG1;
	
	@Resource(name="sayServiceG2")
	private SayService sayServiceG2;
	
	@Test
	public void test_000() {
		Assert.assertTrue(true);
	}
	
//	@Test
	public void test() throws Exception {
		
		Assert.assertNotNull(sayServiceG1);
		Assert.assertNotNull(sayServiceG2);
		
		System.in.read();
		
	}
	
}
